﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace StoreHouseA
{
    using StoreHouseDataSetTableAdapters;

    public partial class Form11 : Form
    {
        public Form11()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            insert_agent();

            this.Close();
        }

        private void insert_agent()
        {
            string in_name = textBox1.Text;
            string in_short = textBox2.Text;
            string in_code = textBox3.Text;
            string in_man = textBox4.Text;
            string in_phone = textBox5.Text;
            string in_memo = textBox6.Text;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            insert_agent();

            textBox1.Text = "";
            textBox2.Text = "";
            textBox3.Text = "";
            textBox4.Text = "";
            textBox5.Text = "";
            textBox6.Text = "";

            textBox1.Focus();
        }
    }
}
